﻿using IBll;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace WebApi.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class HouseTypeController : ControllerBase, IHouseTypeBll
    {
        public HouseTypeController(IHouseTypeBll houseTypeBll)
        {
            HouseTypeBll = houseTypeBll;
        }

        public IHouseTypeBll HouseTypeBll { get; }
        [HttpGet]
        public List<HouseType> GetHouseTypes()
        {
            return HouseTypeBll.GetHouseTypes();
        }
    }
}
